<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录页</title>

    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script>

        var queryStrings=function() {//get url querystring
            var params=document.location.search,reg=/(?:^\?|&)(.*?)=(.*?)(?=&|$)/g,temp,args={};
            while((temp=reg.exec(params))!=null) args[temp[1]]=decodeURIComponent(temp[2]);
            return args;
        };
        //只取一个：
        var queryString=function(key){
            return (document.location.search.match(new RegExp("(?:^\\?|&)"+key+"=(.*?)(?=&|$)"))||['',null])[1];
        }
        let queryString1 = queryString("error");
        if (queryString1){
            alert(queryString1);
        }
    </script>
    <form id="loginForm" action="/auth/login" method="post">
        <input id="username" name="username" placeholder="账号" type="text" value="" maxlength="100">

        <input id="password" name="password" placeholder="密码" type="password" value="" maxlength="100">
        <input type="submit"value="登录">
    </form>
</head>
<body>
</body>
</html>
